<!-- $Id: poll.html,v 1.2 2007/08/08 04:50:13 angelside Exp $ //-->
<form method="post" action="{S_POLL_ACTION}">
<div class="panel">
	<div class="inner"><span class="corners-top"><span></span></span>
	<h3>{POLL_QUESTION}</h3>
	<div class="content">
		<p class="author">{L_POLL_LENGTH}<!-- IF S_CAN_VOTE and L_POLL_LENGTH --><br /><!-- ENDIF --><!-- IF S_CAN_VOTE -->{L_MAX_VOTES}<!-- ENDIF --></p>
		<fieldset class="polls">
		<!-- BEGIN poll_option -->
			<dl class="<!-- IF poll_option.POLL_OPTION_VOTED -->voted<!-- ENDIF -->"<!-- IF poll_option.POLL_OPTION_VOTED --> title="{L_POLL_VOTED_OPTION}"<!-- ENDIF -->>
				<dt><!-- IF S_CAN_VOTE --><label for="vote_{poll_option.POLL_OPTION_ID}">{poll_option.POLL_OPTION_CAPTION}</label><!-- ELSE -->{poll_option.POLL_OPTION_CAPTION}<!-- ENDIF --></dt>
				<!-- IF S_CAN_VOTE --><dd style="width: auto;"><!-- IF S_IS_MULTI_CHOICE --><input type="checkbox" name="vote_id[]" id="vote_{poll_option.POLL_OPTION_ID}" value="{poll_option.POLL_OPTION_ID}"<!-- IF poll_option.POLL_OPTION_VOTED --> checked="checked"<!-- ENDIF -->/><!-- ELSE --><input type="radio" name="vote_id[]" id="vote_{poll_option.POLL_OPTION_ID}" value="{poll_option.POLL_OPTION_ID}"<!-- IF poll_option.POLL_OPTION_VOTED --> checked="checked"<!-- ENDIF --> /><!-- ENDIF --></dd><!-- ENDIF -->
				<!-- IF S_DISPLAY_RESULTS --><dd class="resultbar"><div class="<!-- IF poll_option.POLL_OPTION_PCT < 20 -->pollbar1<!-- ELSEIF poll_option.POLL_OPTION_PCT < 40 -->pollbar2<!-- ELSEIF poll_option.POLL_OPTION_PCT < 60 -->pollbar3<!-- ELSEIF poll_option.POLL_OPTION_PCT < 80 -->pollbar4<!-- ELSE -->pollbar5<!-- ENDIF -->" style="width:{poll_option.POLL_OPTION_PERCENT};">{poll_option.POLL_OPTION_RESULT}</div></dd>
				<dd><!-- IF poll_option.POLL_OPTION_RESULT == 0 -->{L_NO_VOTES}<!-- ELSE -->{poll_option.POLL_OPTION_PERCENT}<!-- ENDIF --></dd><!-- ENDIF -->
			</dl>
		<!-- END poll_option -->

		<!-- IF S_DISPLAY_RESULTS -->
			<dl>
				<dt>&nbsp;</dt>
				<dd class="resultbar">{L_TOTAL_VOTES} : {TOTAL_VOTES}</dd>
			</dl>
		<!-- ENDIF -->

		<!-- IF S_CAN_VOTE -->
			<dl style="border-top: none;">
				<dt>&nbsp;</dt>
				<dd class="resultbar"><input type="submit" name="update" value="{L_SUBMIT_VOTE}" class="button1" /></dd>
			</dl>
		<!-- ENDIF -->

		<!-- IF not S_DISPLAY_RESULTS -->
			<dl style="border-top: none;">
				<dt>&nbsp;</dt>
				<dd class="resultbar"><a href="{U_VIEW_RESULTS}">{L_VIEW_RESULTS}</a></dd>
			</dl>
		<!-- ENDIF -->
		</fieldset>
	</div>
	<span class="corners-bottom"><span></span></span></div>
</div>
{S_HIDDEN_FIELDS}
</form>
<br style="clear:both" />